package com.lyl.lawyer.dao;



import com.lyl.lawyer.model.dto.LawyerAddDto;
import com.lyl.lawyer.model.dto.LawyerFindDto;
import com.lyl.lawyer.model.dto.LawyerUpdateDto;
import com.lyl.lawyer.model.entity.LawyerModel;

import com.lyl.lawyer.model.entity.Page;
import com.lyl.lawyer.model.vo.LawyerVo;

import java.util.List;

public interface LawyerMapper {

    int add(LawyerModel lawyerModel);
    int update(LawyerModel lawyerModel);
    int delete(Integer id);
    LawyerVo findById(Integer id);
    LawyerModel findNewest();
    List<LawyerVo> findAll(LawyerFindDto lawyerFindDto);
    int countFindAll(LawyerFindDto lawyerFindDto);
    int updateIsHome(Integer id);
    List<LawyerVo> findIsHome(Page page);



}
